package com.changil.admin.dto;

import org.json.JSONException;
import org.json.JSONObject;

public class History extends BeanBase {
	public String id;
	public String content;

	public History() {

	}

	public History(JSONObject rawData) {
		this();
		create(rawData);
	}

	@Override
	public void create(JSONObject data) {
		try{
			if ( !data.isNull("id")){
				id = data.getString("id");				
			}
			
			if( !data.isNull("content")) {
				content = data.getString("content");
			}
		} catch(JSONException e) {
			handleException(e);
		}
		
	}

}
